snapshot: Use one GPtrArray for all nodes
authorTimm Bäder <mail@baedert.org>
Sun, 1 Oct 2017 12:28:11 +0000 (14:28 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 2 Oct 2017 12:34:47 +0000 (14:34 +0200)
commitf5297e6f4b9a3b4ff01f083c87e2637481490fc2
tree718dff9c87a55e680e181215261e3015c42f2e27
parent8e59b3b387791ad8a40710956217c71c2e06f818
snapshot: Use one GPtrArray for all nodes

Instead of creating one GPtrArray per GtkSnapshotState and saving nodes
in there, create one GPtrArray per snapshot and assign a
start_node_index to every GtkSnapshotState as well as a n_nodes variable
so every state knows which nodes belong to it.
gtk/gtksnapshot.c
gtk/gtksnapshotprivate.h